using System;
using System.Data; 
 using System.Collections.Generic; 
using System.Data.SqlClient;

 namespace DataAccess
{
	public class tbTypePosts: Popular
	{

 public  int TypePostsID {get; set; }
 public  string NameTypePosts {get; set; }
 public  int OrgID {get; set; }
  Common<tbTypePosts> cm = new Common<tbTypePosts>();
  public bool Insert(Popular b){
 return cm.Insert(b as tbTypePosts , "sp_tbTypePosts_Insert");
 }
 public bool Update(Popular b){
 return cm.UpDate(b as tbTypePosts, "sp_tbTypePosts_Update"); 
 }
  public bool Delete(object b){return cm.Delete(b, "sp_tbTypePosts_Delete"); 
 }
  public IDataReader Select_ID(object b){
  return cm.Select_ID(b, "sp_tbTypePosts_SelectByID"); 
 }
     public IDataReader Select_Name(object b) {
   return cm.Select_Name(b, "sp_tbTypePosts_SelectByName");}
 public IDataReader SelectAll(){
 return cm.Select_All("sp_tbTypePosts_SelectAll");
 }
 public List<tbTypePosts > SelectAllToList() {
 return cm.SelectAll<tbTypePosts>("sp_tbTypePosts_SelectAll");}
 } 
 }